import { readonly } from 'vue'
import * as config from '@/common/config.js'

export function useConfig() {
    // 返回只读的配置，防止被修改
    return {
        STORAGE_KEY: readonly(config.STORAGE_KEY),
        USER_ROLE: readonly(config.USER_ROLE),
        LOAN_STATUS: readonly(config.LOAN_STATUS),
        BUSINESS_CONFIG: readonly(config.BUSINESS_CONFIG),
        APP_INFO: readonly(config.APP_INFO)
    }
} 